package com.cloud.api.domain.forward;

import com.cloud.api.validgroup.ValidateGroupInsert;
import com.cloud.api.validgroup.ValidateGroupUpdate;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;
import java.io.Serializable;
import java.util.List;

@Data
@Schema(description = "车辆转发关系添加请求参数")
public class ForwardRequest implements Serializable {

    @Schema(description = "平台id")
    @NotEmpty(message = "{validation.forward.platformId}",groups = {ValidateGroupUpdate.class, ValidateGroupInsert.class})
    private String platformId;

    @Schema(description = "vin集合，或者id集合（开启关闭转发）")
    @Size(min = 1 ,message = "{validation.forward.vin}",groups = {ValidateGroupUpdate.class, ValidateGroupInsert.class})
    private List<String> vinList;

    @Schema(description = "开启状态")
    @NotEmpty(message = "{validation.command.status}",groups = ValidateGroupUpdate.class)
    private String status;
}
